package com.github.fujianlian.klinechart.entity;


public class BuyAndSellingRecodeBean {

    int id;

    String name;

    String code;

    String date;

    // 买卖类型
    int type;

    // 成交价格
    double price;

    // 成交数量
    int num;
    // 成交金额

    double amunt;
    // 成交金额
    double commission;

    // 是否委托
    boolean isEntrust;
    //委托状态  0 委托中 1.委托过期  2. 委托失败 3.委托成功
    int entrust_status = 0;

    int saleId;

    boolean sale;

    int saleNum;

    long timestamp = 0;

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }

    public double getAmunt() {
        return amunt;
    }

    public double getCommission() {
        return commission;
    }


    public int getSaleId() {
        return saleId;
    }

    public int getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(int saleNum) {
        this.saleNum = saleNum;
    }

    public boolean isSale() {
        return sale;
    }

    public void setSale(boolean sale) {
        this.sale = sale;
    }


    public void setSaleId(int saleId) {
        this.saleId = saleId;
    }

    public int getEntrust_status() {
        return entrust_status;
    }

    public void setEntrust_status(int entrust_status) {
        this.entrust_status = entrust_status;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public void setAmunt(float amunt) {
        this.amunt = amunt;
    }


    public void setCommission(float commission) {
        this.commission = commission;
    }

    public String getDate() {
        return date;
    }

    public int getType() {
        return type;
    }

    public double getPrice() {
        return price;
    }

    public int getNum() {
        return num;
    }


    public boolean getIsEntrust() {
        return isEntrust;
    }

    public void setIsEntrust(boolean isEntrust) {
        this.isEntrust = isEntrust;
    }


    @Override
    public String toString() {
        return "BuyAndSellingRecodeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", date='" + date + '\'' +
                ", type=" + type +
                ", price=" + price +
                ", num=" + num +
                ", amunt=" + amunt +
                ", commission=" + commission +
                ", isEntrust=" + isEntrust +
                ", entrust_status=" + entrust_status +
                ", saleId=" + saleId +
                ", sale=" + sale +
                ", saleNum=" + saleNum +
                ", timestamp=" + timestamp +
                '}';
    }
}
